<template>
  <div class="custom-service-robot-setting">
    <div class="box">
      <div class="setting-item">
        <div class="header">
          <div class="title">
            开启客服机器人
          </div>
          <div class="operates">
            <el-switch v-model="open"></el-switch>
          </div>
        </div>
        <div class="info">
          <p>
            开启后，在机器人工作时间，客户优先与客服机器人进行沟通。
          </p>
        </div>
      </div>
      <work-time></work-time>
      <automatic-reply></automatic-reply>
    </div>
  </div>
</template>

<script>
import WorkTime from './components/workTime.vue';
import AutomaticReply from './components/automaticReply.vue';

export default {
  components: {
    WorkTime,
    AutomaticReply,
  },
  data() {
    return {
      open: false,
    };
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style lang="scss">
.custom-service-robot-setting {
  .el-dialog__header {
    // ! 被全局样式污染 必须内部调整
    button {
      top: 0;
    }
  }
  .el-table--border {
    // ! 被全局样式污染 必须内部调整
    border-top: 1px solid #ebeef5;
    border-left: 1px solid #ebeef5;
    .el-table__empty-block {
      border-right: 1px solid #ebeef5;
      border-bottom: 1px solid #ebeef5;
    }
  }
  .box {
    padding: 20px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    box-sizing: border-box;
    .setting-item {
      &:not(:first-of-type) {
        margin-top: 20px;
      }
      .header {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .title {
          font-size: 16px;
          font-weight: 500;
        }
        .operations {
        }
      }
      .info {
        color: $text-color-secondary;
      }
    }
  }
}
</style>
